cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(cvWavelet)
find_package(OpenCV REQUIRED)
find_package(CUDA REQUIRED)

# collect source files
file( GLOB src *.cpp )
file( GLOB hdr *.hpp )
file( GLOB img *.jpg )
file( GLOB dll *.dll)
file( GLOB cu  *.cu )
file( COPY ${img} DESTINATION ${CMAKE_BINARY_DIR})

include(FindCUDA)
link_libraries("-L/${CUDA_SDK_ROOT_DIR}/C/lib -lcutil")
find_library(CUDA_CUTIL_LIBRARY  "${CUDA_SDK_ROOT_DIR}/lib")

cuda_add_executable(cvWavelet ${src} ${hdr} ${img} ${cu})
target_link_libraries(cvWavelet ${OpenCV_LIBS})

